package cn.itcast.dtx.notifydemo.bank1.spring;

import cn.itcast.dtx.notifydemo.bank1.entity.AccountPay;
import org.springframework.stereotype.Component;

/**
 * @author misterWei
 * @create 2020年02月17号:13点27分
 * @mailbox mynameisweiyan@gmail.com
 */
@Component
public class PayClientRollBack implements PayClient{
    @Override
    public AccountPay payresult(String txNo) {
        AccountPay accountPay = new AccountPay();
        accountPay.setId(txNo);
        accountPay.setResult("fail");
        return accountPay;
    }
}
